﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using CANLib;

namespace CAN_Monitor
{
    public partial class frmFilterBuilder : Form
    {
        #region ctor

        /// <summary>
        /// Standard constructor
        /// </summary>
        /// <param name="parent">The parent main form</param>
        public frmFilterBuilder(frmMain parent)
        {
            InitializeComponent();
            mParentMainWindow = parent;
        }

        #endregion

        #region Members

        private frmMain mParentMainWindow = null;

        #endregion

        #region Properties

        #endregion

        #region Methods

        #endregion

        #region Events

        private void btnUse_Click(object sender, EventArgs e)
        {
            if (mParentMainWindow != null)
            {
                mParentMainWindow.FilterString = txtFilterString.Text;
            }
        }

        //----------------------------------------------------------------------------------------

        private void btnClose_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        //----------------------------------------------------------------------------------------

        #endregion
    }
}
